<script setup>
import {computed , onMounted , ref } from "vue";
import { useStore } from "vuex";
const store = useStore();
let listxq = computed(() => store.state.jiaoshi.listxq)
const onClickLeft = () => history.back();
</script>

<template>
  <div>
    <div class="c-toubu">
      <div>
        <van-icon @click="onClickLeft" name="arrow-left" />
        <span class="xuanke">{{listxq.name}}</span>
      </div>
      <div class="c-gwc">
        <van-icon name="star-o" size="20" />
        <van-icon name="cluster-o" size="20" />
      </div>
    </div>
    <div class="c-wenzhang">
      {{listxq.context}}
   </div>
  </div>
</template>



<style  scoped>
.c-toubu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 50px;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 1px solid #999999;
  position: fixed;
  top: 0;
  background-color: #fff;
  z-index: 999;
}

.xuanke {
    margin-left: 10px;
}
.c-gwc .van-icon {
  margin-right: 15px;
}

.c-wenzhang {
  padding: 15px;
    margin-top: 50px;
    margin-bottom: 50px;
}
</style>